package com.learn;

import com.learn.config.MyProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
//@EnableConfigurationProperties
//@ConfigurationPropertiesScan
public class LearnSpringboot3Application {

    @GetMapping("/hello")
    public String hello() throws InterruptedException {
        Thread.sleep(1000 * 10);
        return "world";
    }

    public static void main(String[] args) {
        SpringApplication.run(LearnSpringboot3Application.class, args);
    }

}
